<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<a href="<c:url value="/" />">Home</a>
	<br/>
	<sf:form method="post" commandName="addNewProduct"
		modelAttribute="product">
		<fieldset>
			<table>
				<thead>
					<tr><th>Add New Product</th></tr>
				</thead>
				<tbody>
					<tr>
						<th><label for="Product ID">Product ID:</label></th>
						<td><sf:input path="id" id="Product ID" /></td>
					</tr>
					<tr>
						<th><label for="Description">Description:</label></th>
						<td><sf:input path="description" id="Description" /> <br />
							<sf:errors cssClass="error" path="description" /></td>
					</tr>

					<tr>
						<th><label for="Price">Price:</label></th>
						<td><sf:input path="price" id="Price" /> <br /> <sf:errors
								path="price" cssClass="error" /></td>
					</tr>

					<tr>
						<th></th>
						<td><input type="submit" value="Submit" /></td>
					</tr>
				</tbody>
			</table>
		</fieldset>
	</sf:form>
</body>
</html>